package com.tx.test.impl;
import com.tx.test.entity.Log;
import com.tx.test.entity.User;
import com.tx.test.mapper.LogMapper;
import com.tx.test.mapper.UserMapper;
import com.tx.test.service.LogService;
import com.tx.test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

//实现类
public class LogServiceImpl implements LogService {
	@Autowired
	private LogMapper logMapper;
	@Override
//	@Transactional(propagation = Propagation.NOT_SUPPORTED)
	@Transactional
	public void insert(Log log) throws Exception {
		System.out.println(">>>>>>>>>>>进入到日志方法");
//		Log log = new Log();
//		log.setName("业务日志记录");
		logMapper.insertLog(log);
	}

}
